﻿<UserControl x:Class="Bull.Plugins.Market.Views.InPlayView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:viewModels="clr-namespace:Bull.Plugins.Market.ViewModels;assembly=Bull.Plugins.Market.ViewModels">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/EventMenuResources.xaml" />
                <ResourceDictionary Source="Resources/MarketBookResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid Style="{StaticResource ContentRoot}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="6"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <ScrollViewer Margin="{StaticResource SplitLeft}">
            <TreeView ItemsSource="{Binding EventTypes, FallbackValue={x:Null}, IsAsync=True}" />
        </ScrollViewer>
        <GridSplitter Grid.Column="1" />
        <ScrollViewer Grid.Column="2 " Margin="{StaticResource SplitRight}">
            <ContentControl Content="{Binding MarketBook, IsAsync=True}" />
        </ScrollViewer>
    </Grid>
</UserControl>
